/*
 * @Author: your name
 * @Date: 2021-08-24 13:56:22
 * @LastEditTime: 2022-02-10 09:41:41
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \maat_web\src\api\portfolioTrial\portfolioTrial.js
 */
import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 交易所债券
  bourseBondTradeSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  // 银行间债券
  bankBondTradeSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  // 上交所固守
  stockBondTradeSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  // 大宗现券
  daZongBondTradeSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  // 基金交易
  fundTradeSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  // 交易所质押式回购
  exchangePledgSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  // 交易所协议式回购
  exchangeAgreementSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  // 银行间质押式回购
  interBankSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  // 理财直融
  finaFlockingSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveFinaflocking`, query),
  // 存款
  addNewSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveDeposit`, query),
  // etf
  etfSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveEtf`, query),
  // 非标
  nonstandardOrderSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveNonstandardAsset`, query),
  // 股票
  stockSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),
  //资产管理计划指令
  zcglPlanSave: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/saveTrade`, query),

  // 查询试算结果表格数据
  getPortfolioList: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/trial`, query),
  // 获取展开试算结果表格数据
  selectPortfolioList: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/detail-trial`, query),
  // 删除试算交易
  deleteTrade: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/deleteTrade`, query),
  // 获取试算交易表格数据
  getTradeList: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioTrial/queryTradePage`, query),
};
